package structure.flyweight;

import structure.flyweight.abs.Website;
import structure.flyweight.obj.User;
import structure.flyweight.obj.WebsiteFactory;

public class Main {
    public static void main(String[] args) {
        Website website1 = WebsiteFactory.getWebsite("news");
        website1.use(new User("jack"));

        Website website2 = WebsiteFactory.getWebsite("news");
        website2.use(new User("tom"));
    }
}
